#include "threadPool.h"

int getAbsDir(dirStack_t *pwd, char *pathname, char *abs_dir) {
  dirStack_t temp;
  initDirStack(&temp);
  if (pathname[0] == '/') {
  } else if (pathname[0] == '\0') {
  } else if (pathname[0] == '~') {
    if (pathname[1] == '/') {
    } else if (pathname[1] == '\0') {
    }
  } else {
    copyDirStack(pwd, &temp);
  }
  cdFunc(&temp, pathname);
  concatDirStack(&temp, abs_dir);
  return 0;
}

int isAsset(const char *pathname) {
    printf("pathname = %s\n", pathname);
    int ret = access(pathname, F_OK);
    printf("ret = %d\n", ret);
    return ret;
}
